package com.examination.to.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * author:FC
 * Date:2021/5/12 21:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Answer {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键 答案id", example = "1")
    private Integer id;

    @ApiModelProperty(value = "所有的选项信息", example = "2,3,4,5(代表ABCD四个选项)")
    private String alloptions;

    @ApiModelProperty(value = "答案解析", example = "1+1=2")
    private String analysis;

    @ApiModelProperty(value = "对应试卷id",example = "1")
    private Integer examid;

    @ApiModelProperty(value = "正确的答案的索引", example = "allOption[index]")
    private String trueoption;

    @ApiModelProperty(value = "答案的图片列表", example = "img1URl, img2URl")
    private String images;

    @ApiModelProperty(value = "判断结果",example = "正确")
    private String judge;

    @ApiModelProperty(value = "上传的填空内容",example = "这是内容")
    private String text;

    @ApiModelProperty(value = "对应问题的id",example = "1")
    private Integer questionid;

    private String preview;
}
